import request from '@/utils/request'

// 查询农艺性状数据列表
export function listAgriculture(query) {
  return request({
    url: '/agriculture/agriculture/list',
    method: 'get',
    params: query
  })
}

// 查询农艺性状数据详细
export function getAgriculture(id) {
  return request({
    url: '/agriculture/agriculture/' + id,
    method: 'get'
  })
}

// 新增农艺性状数据
export function addAgriculture(data) {
  return request({
    url: '/agriculture/agriculture',
    method: 'post',
    data: data
  })
}

// 修改农艺性状数据
export function updateAgriculture(data) {
  return request({
    url: '/agriculture/agriculture',
    method: 'put',
    data: data
  })
}

// 删除农艺性状数据
export function delAgriculture(id) {
  return request({
    url: '/agriculture/agriculture/' + id,
    method: 'delete'
  })
}
